﻿using Spanner;

namespace SpannerWebSite
{
    internal partial class HelloWorld: UI
    {
        internal static Html Content()
        {
            return P("Hello, World!");
        }
        internal static void WriteWebPage() {
            const string path = Const.DemoWebSitePath;
            var html = StandardSpannerHtmlPage("Hello, World!", Content());
            var initAct = (Act) null;
            var webPage = WebPage("HelloWorld", html, initAct);
            var ctxt = new Context(path);
            ctxt.WriteWebPage(webPage);
        }
    }
}
